/**
 * 
 */
package org.arpit.masteringextjs.domain;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.OneToMany;

import org.codehaus.jackson.annotate.JsonProperty;

/**
 * @author arpit.rathore
 *
 */
@Entity
public class Country extends BaseEntity {

	private String country;
	
	@OneToMany(mappedBy="country")
	private List<City> cities;

	/**
	 * @return the country
	 */
	public String getCountry() {
		return country;
	}

	/**
	 * @param country the country to set
	 */
	public void setCountry(String country) {
		this.country = country;
	}
	
	@Override
	@JsonProperty("country_id")
	public Long getId() {
		return super.getId();
	}
	
}
